package com.carSys.Service;

import com.carSys.DTO.TaskTypeAssignmentPercentageDTO;
import com.carSys.Mapper.TaskTypeAssignmentPercentageDTOMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskTypeAssignmentPercentageDTOService {

    @Autowired
    private TaskTypeAssignmentPercentageDTOMapper taskTypeAssignmentPercentageDTOMapper;

    public List<TaskTypeAssignmentPercentageDTO> getAllCompletedAssignmentsCountByTaskType(int month) {
        return taskTypeAssignmentPercentageDTOMapper.getAllCompletedAssignmentsCountByTaskType(month);
    }

    public List<TaskTypeAssignmentPercentageDTO> getAllAcceptedAssignmentsCountByTaskType(int month) {
        return taskTypeAssignmentPercentageDTOMapper.getAllAcceptedAssignmentsCountByTaskType(month);
    }
}
